import java.util.Scanner;

public class jianjing {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        // 产生随机中奖数字
        int winningNumber = (int)(Math.random() * 90 + 10);
        System.out.println("中奖数字：" + winningNumber);

        // 用户输入猜测的数字
        System.out.print("请输入一个两位数作为您的猜测：");
        int guess = scanner.nextInt();

        // 分解中奖数字和用户猜测数字的十位和个位
        int winningTensDigit = winningNumber / 10;
        int winningOnesDigit = winningNumber % 10;
        int guessTensDigit = guess / 10;
        int guessOnesDigit = guess % 10;

        // 判断中奖情况并给出奖金
        if (guess == winningNumber) {
            System.out.println("完全匹配，奖金10000元");
        } else if (guessTensDigit == winningOnesDigit && guessOnesDigit == winningTensDigit) {
            System.out.println("顺序不一致但数字匹配，奖金2000元");
        } else if (guessTensDigit == winningTensDigit || guessTensDigit == winningOnesDigit || guessOnesDigit == winningTensDigit || guessOnesDigit == winningOnesDigit) {
            System.out.println("有一个数字匹配，奖金1000元");
        } else if (guessTensDigit == winningOnesDigit || guessOnesDigit == winningTensDigit) {
            System.out.println("一个数字匹配但顺序不一致，奖金500元");
        } else {
            System.out.println("未中奖，无任何奖金");
        }
    }
}
